{strip}
	{* add new Domain -------------------------------------------------------------------------------------------------------------------------------------------------- *}
	<div class="content_spacing">
		<h2>{$smarty.config.ProjectDomains_headline}</h2>
		<br />
		{$smarty.config.ProjectDomains_description}
	</div>
	<br />
	
	<div style="float:left;width:315px;margin-left:20px;">		
		{* Add new domain ............................................................................................*}
		<h3>{$smarty.config.ProjectDomains_new_domain}</h3>
		<div class="contentbox">
			<div class="contentbox_header">&nbsp;</div>
			<div class="contentbox_inner">
				<form id="project_newdomainform_{$project.project_id}" accept-charset="utf-8">
					<input type="hidden" name="project_id" id="project_id" value="{$project.project_id}" />
					
					{* Domainname *}
					<div class="box_label">
						{$smarty.config.ProjectDomains_new_domain_name}
					</div>
					<div class="box_content">
						<input type="text" name="project_domain_name" id="project_domain_name" value="" class="FormFieldInput" style="width: 167px;" /><br />
						<span id="project_domain_name_error_{$project.project_id}" class="error"></span>
						<div class="clear"></div>
					</div>
					<div class="clear"></div>
					<br />
					
					{* Target *}
					<div class="box_label">
						{$smarty.config.ProjectDomains_new_domain_target}
					</div>
					<div class="box_content">
						<select size="1" name="project_domain_key_obj_id" id="project_domain_key_obj_id" style="width: 180px;">
							{foreach from=$navitree item=entry}
								<option value="{$entry.value}">{$entry.name}</option>
							{/foreach}			
						</select>
						<div class="clear"></div>
					</div>
					<div class="clear"></div>
					<br />
					
					{* Language *}
					<div class="box_label">
						{$smarty.config.ProjectDomains_new_domain_language}
					</div>
					<div class="box_content">
						<select size="1" name="project_domain_key_lang_id" id="project_domain_key_lang_id" style="width: 180px;">
							{foreach from=$languages item=lang}
								{if $lang.project_language_key_project_id != ""}
									<option value="{$lang.lang_id}">{$lang.lang_name}</option>
								{/if}
							{/foreach}			
						</select>
						<div class="clear"></div>
					</div>
					<div class="clear"></div>
					<br />
					
					{* save *}
					<div class="box_label">
						&nbsp;
					</div>
					<div class="box_content">
						<input type="button" name="submitbtn" value="{$smarty.config.ProjectDomains_submit_save}" class="submitbtn" onclick="{strip}{literal}
							xajax.request(
							{ccdsclass:'ccdsProject',ccdsfun:'ProjectDomainNewSave'},
							{
							{/literal}
							parameters:[xajax.getFormValues('project_newdomainform_{$project.project_id}')]
							{literal}
							});
						{/literal}{/strip}"/>
						<div class="clear"></div>
					</div>
					<div class="clear"></div>
					<br />
				</form>
			</div>
		</div>
		<br />
	</div>
	<div style="float:left;width:315px;margin-left:20px;">
		{* Hint ---------------------------------------------------------------------------------------------*}
		<h3>{$smarty.config.ProjectDomains_hint_headline}</h3>
		<div class="contentbox_hint">
			{$smarty.config.ProjectDomains_hint_text}
		</div>
	</div>
	<div class="clear"></div>
	<br />

	
	{* edit Domain -------------------------------------------------------------------------------------------------------------------------------------------------- *}
	<div class="content_spacing">
		<h3>{$smarty.config.ProjectDomains_edit}</h3>
		<table class="tableList" cellpadding="2" cellspacing="1" border="0" width="100%">
			<tr>
				<th>{$smarty.config.ProjectDomains_edit_domain_name}</th>
				<th>{$smarty.config.ProjectDomains_edit_domain_language}</th>
				<th>{$smarty.config.ProjectDomains_edit_domain_target}</th>
			</tr>
			{foreach from=$project_domains item=pdomain}
				<tr>
					{if $bgcolor == ""}
						{assign var="bgcolor" value="tablerow_color"}					
					{else}
						{assign var="bgcolor" value=""}					
					{/if}
					<td class="{$bgcolor}" valign="top">
						<a href="javascript:void(0);" onclick="{strip}{literal}
								xajax.request({ccdsclass:'ccdsProject',ccdsfun:'ProjectDomainEdit'}
						,{
							parameters:[{{/literal}
								project_id:'{$project.project_id}',pdomain_id:'{$pdomain.project_domain_id}'
							{literal}
							}
							]}
						);
						{/literal}{/strip}">{$pdomain.project_domain_name}</a>
					</td>
					<td class="{$bgcolor}" valign="top">
						{foreach from=$languages item=lang}
							{if $pdomain.project_domain_key_lang_id==$lang.lang_id}
								{$lang.lang_name}
							{/if}
						{/foreach}
					</td>
					<td class="{$bgcolor}" valign="top">
						{foreach from=$pdomain.PATH item=obj}
							/{$obj.obj_name}
						{/foreach}
					</td>
				</tr>
			{/foreach}
		</table>
		<br />
		<div id="DomainEditDiv_{$project.project_id}" style="display:none"></div>
	</div>
{/strip}

